package com.yuanian.springbootProject.dao;

import com.yuanian.springbootProject.dto.UserRoleName;
import com.yuanian.springbootProject.entity.TUserRole;

import java.util.List;

public interface TUserRoleMapper {
    int deleteByPrimaryKey(String id);

    int deleteByUserId(String userId);

    int deleteByRoleId(String roleId);

    int insert(TUserRole record);

    int insertSelective(TUserRole record);

    TUserRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TUserRole record);

    int updateByPrimaryKey(TUserRole record);

    List<TUserRole> selectAll();

    List<UserRoleName> selectAllWithNames();
}